<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('Comments/index')}">评论管理</a></li>
		</ul>
        <form class="well form-search" method="post" action="{:U('Comments/index')}">
			时间：
			<input type="text" id="start_time" name="start_time" value="{:I('request.start_time/s','')}" placeholder="开始时间" style="width: 120px;" autocomplete="off"> -
			<input type="text" id="end_time" name="end_time" value="{:I('request.end_time/s','')}" placeholder="结束时间" style="width: 120px;" autocomplete="off">
			订单号:
			<input type="text" name="bill_no" style="width: 130px;" value="{:I('request.bill_no/s','')}" placeholder="请输入订单号">
			会员手机号:
			<input type="text" name="member_id" style="width: 130px;" value="{:I('request.member_id/s','')}" placeholder="会员手机号">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:U('Comments/index')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>会员手机号</th>
					<th>订单号</th>
					<th width="200">小哥满意程度 / 洗衣满意程度</th>
					<th>评论详情</th>
					<th width="150">评论时间</th>
				</tr>
			</thead>
			<style>td{word-break:break-all;}</style>
			<tbody>
				<foreach name="list" item="vo">
				<tr>
					<td>{$vo.id}</td>
					<td>{$vo.member_id}</td>
					<td>{$vo.bill_no}</td>
					<td>
						<for start="0" end="$vo.evaluate1">
							<b style="font-size: 20px;color: red">☆</b>
						</for>
						<br>
						<for start="0" end="$vo.evaluate2">
							<b style="font-size: 20px;color: red">☆</b>
						</for>
					</td>
					<td>{$vo.comment_content}</td>
					<td>{$vo.comment_data}</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script>
        $("#start_time").datetimepicker({
            autoclose: true,
            language: 'zh-CN',
            format: 'yyyy-mm-dd hh:ii'
        }).on('changeDate', function (ev) {
            var startTime = $("#start_time").val();
            var endTime = $("#end_time").val();
            if (startTime && endTime) {
                if (startTime > endTime) {
                    bootbox.alert("结束时间不能小于开始时间");
                }
            }
        });

        $("#end_time").datetimepicker({
            autoclose: true,
            language: 'zh-CN',
            format: 'yyyy-mm-dd hh:ii'
        }).on('changeDate', function (ev) {
            var startTime = $("#start_time").val();
            var endTime = $("#end_time").val();
            if (startTime && endTime) {
                if (startTime > endTime) {
                    bootbox.alert("结束时间不能小于开始时间");
                }
            }
        });
	</script>
	<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>